//
//  LGGemeteryCollectionViewCell.m
//  ligenyun
//
//  Created by Mac on 2018/4/9.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import "LGGemeteryCollectionViewCell.h"
@interface LGGemeteryCollectionViewCell()
@property(nonatomic, strong) UIImageView                     *bannerImageView;
@property(nonatomic, strong) STLabel                     *titleLable;
@property(nonatomic, strong) STLabel                     *moneyLable;
@end
@implementation LGGemeteryCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self configSubView];
    }
    return self;
}
+ (CGFloat)itemHeight{
    return 160;
}
#pragma mark --subView
- (void)configSubView{
    CGFloat itemwith = (UIScreenWidth - 30 - 20)/2;
    UIView * whiteView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, itemwith, [[self class] itemHeight])];
    whiteView.backgroundColor = [UIColor whiteColor];
     whiteView.layer.cornerRadius = 6;
    whiteView.clipsToBounds = YES;
    [self addSubview:whiteView];
    
    self.bannerImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, itemwith, 90)];
    self.bannerImageView.image = [UIImage imageNamed:@"纪念馆01"];
    [self addSubview:self.bannerImageView];
    
    self.titleLable = [[STLabel alloc] initWithFrame:CGRectMake(10, self.bannerImageView.bottom + 10, itemwith - 20, 20)
                                                text:@"宋庆龄陵园现在"
                                           textColor:FirstTextColor
                                                font:15
                                         isSizetoFit:NO
                                       textAlignment:NSTextAlignmentLeft];
    [self addSubview:self.titleLable];
    
    
    self.moneyLable = [[STLabel alloc] initWithFrame:CGRectMake(10, self.titleLable.bottom + 10, 200, 40)
                                                text:@"￥300"
                                           textColor:TM_redColor
                                                font:14
                                         isSizetoFit:NO
                                       textAlignment:NSTextAlignmentLeft];
    [self addSubview:self.moneyLable];
    
}
@end
